package com.jiazhong.springmvc.test01;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @Auther:shuXin
 */
@Controller
@RequestMapping("header")
@ResponseBody
public class HeaderController {

    @GetMapping("get")
    public String getHeader(@RequestHeader("Accept") String value){
        System.out.println(value);
        return value;
    }
}
